//
//  XYTButton.h
//  XYTPayOrderSystem
//
//  Created by wupeng on 2017/9/8.
//  Copyright © 2017年 wupeng. All rights reserved.
//

#import <UIKit/UIKit.h>
@class XYTButton;

@protocol XYTButtonDelegate <NSObject>

- (void)xytButtonOnClick:(XYTButton *)button;

@end

@interface XYTButton : UIView

@property (nonatomic, assign) id<XYTButtonDelegate>delegate;

@property (nonatomic, strong) UILabel *titleLab;

@property (nonatomic, strong) UIImageView *btnImage;

- (instancetype)initWithFrame:(CGRect)frame delegate:(id)delegate;

- (void)setTitle:(NSString *)title  image:(NSString *)imageName;

@end
